package lesson.exam;

import lesson.base.BaseService;
import lesson.db.DbUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class ExamSubjectService extends BaseService {


    public List<ExamSubject> list(Integer... examIds) {
        SqlSession session = DbUtil.getSession(true);
        ExamSubjectDao subjectDao = session.getMapper(ExamSubjectDao.class);
        List<ExamSubject> subjects = subjectDao.list(examIds);
        session.close();
        return subjects;
    }

}